# !/usr/bin/env python
# coding: utf8

import pygtk
from manager.bean_store      import *
pygtk.require('2.0')
'''
Created on 28 mai 2009

@author: tmeedendorp
'''
class ThematicStore(gtk.TreeStore):
    
    def __init__(self):
        gtk.TreeStore.__init__(self, str)
        parameterIterator = getBean("configurationManager").getThematicList()
        for parameter in parameterIterator:
            thematic_word_list = getBean("configurationManager").getThematicCategories(parameter)
            m_iter =  self.treestore.append(None, parameter)
            for categoryName in thematic_word_list:
                self.treestore.append(m_iter, categoryName)